import { stringify } from 'qs';
import request from '../utils/request';

export async function getList(params) {
  return request(`/ipda/list?${stringify(params)}`);
}

export async function findIpdabyid(params) {
  return request(`/ipda/findOneDeviceId/${params}`, {
    method: 'GET',
  });
}

export async function bindingSim(params) {
  return request('/ipda/bindingsim', {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function bindingVin(params) {
  return request('/ipda/bindingvin', {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function ipdaAdd(params) {
  return request('/ipda/add', {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function ipdaEdit(params) {
  return request('/ipda/edit', {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
